import request from "@/util/request";


/**
 * @description 查询培训列表
 * @returns {data}
 */
export function getTrainingList(data) {
	return request({
		url: '/getTrainingList',
		method: 'get',
		data
	})
}
/**
 * @description 查询培训详情
 * @returns {data}
 */
export function getTraining(data) {
	return request({
		url: '/getTraining',
		method: 'get',
		data
	})
}

/**
 * @description 查询培训相关岗位
 * @returns {data}
 */
export function getMyPublishByPost(data) {
	return request({
		url: '/getMyPublishByPost',
		method: 'get',
		data
	})
}

/**
 * @description 查询视频培训列表
 * @returns {data}
 */
export function getVideoTrainList(data) {
	return request({
		url: '/getVideoTrainList',
		method: 'get',
		data
	})
}

export function getVideoTypeList(data) {
	return request({
		url: '/getVideoTypeList',
		method: 'get',
		data
	})
}
/**
 * @description 培训报名
 * @returns {data}
 */
export function groupTrainEnroll(data) {
	return request({
		url: '/groupTrainEnroll',
		method: 'post',
		data
	})
}
/**
 * @description 查询是否报名
 * @returns {data}
 */
export function findTrainEnrollApi(data) {
	return request({
		url: '/findTrainEnroll',
		method: 'get',
		data
	})
}
/**
 * @description 查询专业详情
 * @returns {data}
 */
export function getTrainSpecialityByIdApi(data) {
	return request({
		url: '/getTrainSpecialityById',
		method: 'get',
		data
	})
}
/**
 * @description 查询种类
 * @returns {data}
 */
export function findTrainListApi(data) {
	return request({
		url: '/getTrainSpecialityList',
		method: 'get',
		data
	})
}